let user = {
  namespaced: true,
  state: {
    info: {},
    haveLogin: false
  },
  mutations: {
    login: (state, userInfo) => {
      state.info = userInfo
      state.haveLogin = true
    }
  },
  actions: {
    login: (context, userInfo) => {
      context.commit('login', userInfo)
    }
  }
}

export default user
